package com.qiyu.datasource.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author linhao
 * @Date created in 10:07 上午 2020/12/18
 */
@AllArgsConstructor
@Getter
public enum DatasourceConfigEnum {

    PROD_DB("jdbc:mysql://prod.min.mall.com:3306/mall?useUnicode=true&characterEncoding=utf8", "root", "root", "db-prod"),

    TEST_ORDER_DB("jdbc:mysql://prod.min.mall.com:3306/mall-order?useUnicode=true&characterEncoding=utf8", "root", "root", "db-test"),
    TEST_USER_DB("jdbc:mysql://prod.min.mall.com:3306/mall-user?useUnicode=true&characterEncoding=utf8", "root", "root", "db-test"),
    TEST_GOODS_DB("jdbc:mysql://prod.min.mall.com:3306/mall-goods?useUnicode=true&characterEncoding=utf8", "root", "root", "db-test"),

    DEV_DB("jdbc:mysql://dev.min.mall.com:3306/mall-dev?useUnicode=true&characterEncoding=utf8", "root", "root", "db-dev"),

    PRE_DB("jdbc:mysql://pre.min.mall.com:3306/mall-pre?useUnicode=true&characterEncoding=utf8", "root", "root", "db-pre"),
    ONLINE_DB("jdbc:mysql://online.idea.com:3306/linhao_test?useUnicode=true&characterEncoding=utf8", "root", "root", "db-online"),

    TEST_DB_01("jdbc:mysql://prod.min.mall.com:3306/test-db01?useUnicode=true&characterEncoding=utf8", "root", "root", "test-db01"),
    TEST_DB_02("jdbc:mysql://prod.min.mall.com:3306/test-db02?useUnicode=true&characterEncoding=utf8", "root", "root", "test-db02"),

    CLOUD_DB("jdbc:mysql://cloud.db.com:3306/idea_user", "idea", "LinHao9685219705", "idea_user"),
    CLOUD_DB_PAY("jdbc:mysql://cloud.db.com:3306/idea_pay", "idea", "LinHao9685219705", "idea_pay"),
    CLOUD_DB_COMMON("jdbc:mysql://cloud.db.com:3306/idea_common", "idea", "LinHao9685219705", "idea_common");

    public String url;
    public String username;
    public String password;
    public String databaseName;


    @Override
    public String toString() {
        return super.toString().toLowerCase();
    }
}
